package com.hmall.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "mall_order_item_detail")
public class MallOrderItemDetail {
    @Id
    @Column(name = "order_item_detail_id")
    private Integer orderItemDetailId;

    @Column(name = "order_item_id")
    private Integer orderItemId;

    @Column(name = "material_code")
    private String materialCode;

    private BigDecimal quantity;

    @Column(name = "current_unit_price")
    private BigDecimal currentUnitPrice;

    @Column(name = "total_price")
    private BigDecimal totalPrice;

    @Column(name = "inventory_organization")
    private String inventoryOrganization;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "residual_quantity")
    private BigDecimal residualQuantity;

    /**
     * 税率 默认16.00
     */
    private String rate;

    @Column(name = "ex_factory_price")
    private BigDecimal exFactoryPrice;

    /**
     * 01  义乌华鼎锦纶股份有限公司、 0101  宁波圣鼎贸易有限公司
     */
    @Column(name = "sales_organization")
    private String salesOrganization;

    /**
     * 01 一类销售、02 二类销售、03 三类销售、 04普通
     */
    @Column(name = "sales_type")
    private String salesType;

    /**
     * 01 公司支付、 02 客户支付
     */
    @Column(name = "freight_payment_type")
    private String freightPaymentType;

    /**
     * 01 3个月承兑、02 6个月承兑、03 电汇、09 其它
     */
    @Column(name = "payment_methods")
    private String paymentMethods;

    /**
     * 订单分组
     */
    @Column(name = "group_no")
    private Long groupNo;

    @Column(name = "check_quantity")
    private BigDecimal checkQuantity;

    @Column(name = "grade")
    private String grade;

    @Column(name = "twisting")
    private String twisting;

    @Column(name = "color")
    private String color;

    @Column(name = "machine_no")
    private String machineNo;
}